<html>
<head>
	<title>调试面板</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <link href="./css/aui.css" rel="stylesheet" type="text/css"/>
    <link href="./css/index.css" rel="stylesheet" type="text/css"/>
    <link href="./css/aui-iconfont.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="./js/api.js"></script>
	<script type="text/javascript" src="./js/socket.io-2.1.1.js"></script>
	<script type="text/javascript" src="./js/socket.js"></script>
</head>
<style type="text/css"> 
</style>
<body>
 <div class="panel">
	  
 </div>


</body>
<script type="text/javascript">
    var debug = true;//是否开启调试
	$socket.init(function(status,msg){
		console.log(status,msg);
		var statusTxt = $api.byId("statusTxt");
		$api.html(statusTxt,msg);
		if(status){
			$api.attr(statusTxt,'style','color:green;');
		}else{
			$api.attr(statusTxt,'style','color:red;');
		} 
	});
	$socket.message(function(data){
		console.log("接收消息:");
		console.log(data);
	});
</script>
</html>